//
//  YGSicenceCollectionReusableView.m
//  yuanshangyiliao
//
//  Created by icholab on 2021/5/3.
//

#import "YGSicenceCollectionReusableView.h"

@interface YGSicenceCollectionReusableView ()
@property (nonatomic, strong) UILabel  *titleLabel;

@end
@implementation YGSicenceCollectionReusableView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)setTitle:(NSString *)title{
    self.titleLabel.text = title;
}

- (void)initView{
    _titleLabel = [[UILabel alloc] init];
    _titleLabel.font = [UIFont boldSystemFontOfSize:16];
    _titleLabel.textColor = UIColorFromRGB(0x333333);
    [self addSubview:_titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.mas_equalTo(0);
        make.left.mas_equalTo(10);
    }];
}

@end
